home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10103 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  3.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 6c 61 6e 67 2e 63 2b | 2b 0a 50 61 74 68 3a 20 |.lang.c+|+.Path: |
|00000020| 70 65 65 72 2d 6e 65 77 | 73 2e 62 72 69 74 61 69 |peer-new|s.britai|
|00000030| 6e 2e 65 75 2e 6e 65 74 | 21 77 61 72 77 69 63 6b |n.eu.net|!warwick|
|00000040| 21 6e 6f 74 74 2d 63 73 | 21 74 72 65 6e 74 2d 64 |!nott-cs|!trent-d|
|00000050| 6f 63 21 6e 65 77 73 0a | 46 72 6f 6d 3a 20 43 48 |oc!news.|From: CH|
|00000060| 41 4d 42 45 52 53 20 4a | 61 73 6f 6e 20 3c 70 74 |AMBERS J|ason <pt|
|00000070| 33 63 68 61 6a 3e 0a 53 | 75 62 6a 65 63 74 3a 20 |3chaj>.S|ubject: |
|00000080| 52 65 3a 20 4f 76 65 72 | 77 72 69 74 69 6e 67 20 |Re: Over|writing |
|00000090| 74 65 78 74 0a 58 2d 4e | 6e 74 70 2d 50 6f 73 74 |text.X-N|ntp-Post|
|000000a0| 69 6e 67 2d 48 6f 73 74 | 3a 20 70 75 70 32 31 0a |ing-Host|: pup21.|
|000000b0| 43 6f 6e 74 65 6e 74 2d | 54 79 70 65 3a 20 6d 75 |Content-|Type: mu|
|000000c0| 6c 74 69 70 61 72 74 2f | 6d 69 78 65 64 3b 0a 09 |ltipart/|mixed;..|
|000000d0| 62 6f 75 6e 64 61 72 79 | 3d 22 2d 2d 2d 2d 2d 2d |boundary|="------|
|000000e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 39 30 30 35 31 34 39 |--------|-9005149|
|00000100| 34 35 39 39 33 33 33 39 | 36 38 36 31 36 33 36 38 |45993339|68616368|
|00000110| 34 35 39 32 37 22 0a 4d | 65 73 73 61 67 65 2d 49 |45927".M|essage-I|
|00000120| 44 3a 20 3c 44 6e 74 37 | 78 70 2e 46 46 42 40 64 |D: <Dnt7|xp.FFB@d|
|00000130| 6f 63 2e 6e 74 75 2e 61 | 63 2e 75 6b 3e 0a 54 6f |oc.ntu.a|c.uk>.To|
|00000140| 3a 20 49 61 69 6e 2e 4a | 61 6d 65 73 6f 6e 40 64 |: Iain.J|ameson@d|
|00000150| 73 74 6f 2e 64 65 66 65 | 6e 63 65 2e 67 6f 76 2e |sto.defe|nce.gov.|
|00000160| 61 75 0a 53 65 6e 64 65 | 72 3a 20 6e 65 77 73 40 |au.Sende|r: news@|
|00000170| 64 6f 63 2e 6e 74 75 2e | 61 63 2e 75 6b 0a 4f 72 |doc.ntu.|ac.uk.Or|
|00000180| 67 61 6e 69 7a 61 74 69 | 6f 6e 3a 20 54 68 65 20 |ganizati|on: The |
|00000190| 4e 6f 74 74 69 6e 67 68 | 61 6d 20 54 72 65 6e 74 |Nottingh|am Trent|
|000001a0| 20 55 6e 69 76 65 72 73 | 69 74 79 2c 20 44 4f 43 | Univers|ity, DOC|
|000001b0| 2e 0a 52 65 66 65 72 65 | 6e 63 65 73 3a 20 3c 33 |..Refere|nces: <3|
|000001c0| 31 33 35 34 35 36 43 2e | 35 43 34 42 40 64 73 74 |135456C.|5C4B@dst|
|000001d0| 6f 2e 64 65 66 65 6e 63 | 65 2e 67 6f 76 2e 61 75 |o.defenc|e.gov.au|
|000001e0| 3e 0a 4d 69 6d 65 2d 56 | 65 72 73 69 6f 6e 3a 20 |>.Mime-V|ersion: |
|000001f0| 31 2e 30 0a 44 61 74 65 | 3a 20 54 75 65 2c 20 35 |1.0.Date|: Tue, 5|
|00000200| 20 4d 61 72 20 31 39 39 | 36 20 31 39 3a 33 39 3a | Mar 199|6 19:39:|
|00000210| 32 35 20 47 4d 54 0a 58 | 2d 4d 61 69 6c 65 72 3a |25 GMT.X|-Mailer:|
|00000220| 20 4d 6f 7a 69 6c 6c 61 | 20 31 2e 31 4e 20 28 58 | Mozilla| 1.1N (X|
|00000230| 31 31 3b 20 49 3b 20 53 | 75 6e 4f 53 20 34 2e 31 |11; I; S|unOS 4.1|
|00000240| 2e 32 20 73 75 6e 34 63 | 29 0a 58 2d 55 72 6c 3a |.2 sun4c|).X-Url:|
|00000250| 20 6e 65 77 73 3a 33 31 | 33 35 34 35 36 43 2e 35 | news:31|35456C.5|
|00000260| 43 34 42 40 64 73 74 6f | 2e 64 65 66 65 6e 63 65 |C4B@dsto|.defence|
|00000270| 2e 67 6f 76 2e 61 75 0a | 0a 54 68 69 73 20 69 73 |.gov.au.|.This is|
|00000280| 20 61 20 6d 75 6c 74 69 | 2d 70 61 72 74 20 6d 65 | a multi|-part me|
|00000290| 73 73 61 67 65 20 69 6e | 20 4d 49 4d 45 20 66 6f |ssage in| MIME fo|
|000002a0| 72 6d 61 74 2e 0a 0a 2d | 2d 2d 2d 2d 2d 2d 2d 2d |rmat...-|--------|
|000002b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000002c0| 2d 2d 2d 2d 2d 2d 2d 2d | 39 30 30 35 31 34 39 34 |--------|90051494|
|000002d0| 35 39 39 33 33 33 39 36 | 38 36 31 36 33 36 38 34 |59933396|86163684|
|000002e0| 35 39 32 37 0a 43 6f 6e | 74 65 6e 74 2d 54 72 61 |5927.Con|tent-Tra|
|000002f0| 6e 73 66 65 72 2d 45 6e | 63 6f 64 69 6e 67 3a 20 |nsfer-En|coding: |
|00000300| 37 62 69 74 0a 43 6f 6e | 74 65 6e 74 2d 54 79 70 |7bit.Con|tent-Typ|
|00000310| 65 3a 20 74 65 78 74 2f | 70 6c 61 69 6e 3b 20 63 |e: text/|plain; c|
|00000320| 68 61 72 73 65 74 3d 75 | 73 2d 61 73 63 69 69 0a |harset=u|s-ascii.|
|00000330| 0a 4d 79 20 75 6e 64 65 | 72 73 74 61 6e 64 69 6e |.My unde|rstandin|
|00000340| 67 20 6f 66 20 79 6f 75 | 72 20 70 72 6f 62 6c 65 |g of you|r proble|
|00000350| 6d 20 69 73 20 74 68 61 | 74 20 79 6f 75 20 77 69 |m is tha|t you wi|
|00000360| 73 68 20 74 6f 20 73 74 | 6f 72 65 20 70 72 6f 70 |sh to st|ore prop|
|00000370| 65 72 74 69 65 73 20 77 | 68 69 63 68 20 61 72 65 |erties w|hich are|
|00000380| 0a 70 65 72 73 69 73 74 | 65 6e 74 20 69 6e 20 62 |.persist|ent in b|
|00000390| 65 74 77 65 65 6e 20 73 | 65 73 73 69 6f 6e 73 20 |etween s|essions |
|000003a0| 6f 66 20 79 6f 75 72 20 | 61 70 70 6c 69 63 61 74 |of your |applicat|
|000003b0| 69 6f 6e 2e 20 49 66 20 | 74 68 69 73 20 69 73 20 |ion. If |this is |
|000003c0| 74 68 65 20 63 61 73 65 | 20 77 68 79 20 6e 6f 74 |the case| why not|
|000003d0| 0a 75 73 65 20 74 68 65 | 20 58 20 52 65 73 6f 75 |.use the| X Resou|
|000003e0| 72 63 65 20 4d 61 6e 61 | 67 65 72 20 74 6f 20 68 |rce Mana|ger to h|
|000003f0| 61 6e 64 6c 65 20 74 68 | 69 73 20 66 6f 72 20 79 |andle th|is for y|
|00000400| 6f 75 20 28 73 65 65 20 | 4f 2d 52 65 69 6c 6c 79 |ou (see |O-Reilly|
|00000410| 20 58 6c 69 62 0a 50 72 | 6f 67 72 61 6d 6d 69 6e | Xlib.Pr|ogrammin|
|00000420| 67 20 6d 61 6e 75 61 6c | 29 2e 20 59 6f 75 20 70 |g manual|). You p|
|00000430| 72 6f 62 61 62 6c 79 20 | 61 6c 72 65 61 64 79 20 |robably |already |
|00000440| 75 73 65 20 74 68 69 73 | 20 74 6f 20 64 65 66 69 |use this| to defi|
|00000450| 6e 65 20 74 68 65 20 61 | 70 70 65 61 72 61 6e 63 |ne the a|ppearanc|
|00000460| 65 20 6f 66 0a 77 69 64 | 67 65 74 73 20 69 6e 20 |e of.wid|gets in |
|00000470| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00000480| 20 28 62 79 20 65 64 69 | 74 69 6e 67 20 2e 58 64 | (by edi|ting .Xd|
|00000490| 65 66 61 75 6c 74 73 20 | 61 6e 64 20 72 75 6e 6e |efaults |and runn|
|000004a0| 69 6e 67 20 78 72 64 62 | 29 2e 20 54 68 65 72 65 |ing xrdb|). There|
|000004b0| 20 69 73 0a 6e 6f 74 68 | 69 6e 67 20 73 74 6f 70 | is.noth|ing stop|
|000004c0| 70 69 6e 67 20 79 6f 75 | 20 73 74 6f 72 69 6e 67 |ping you| storing|
|000004d0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 73 70 65 | applica|tion spe|
|000004e0| 63 69 66 69 63 20 69 6e | 66 6f 72 6d 61 74 69 6f |cific in|formatio|
|000004f0| 6e 20 69 6e 20 74 68 69 | 73 20 77 61 79 20 28 69 |n in thi|s way (i|
|00000500| 2e 65 2e 0a 74 68 65 20 | 70 61 72 61 6d 65 74 65 |.e..the |paramete|
|00000510| 72 73 2f 70 72 6f 70 65 | 72 74 69 65 73 29 2e 20 |rs/prope|rties). |
|00000520| 45 73 73 65 6e 74 69 61 | 6c 6c 79 2c 20 79 6f 75 |Essentia|lly, you|
|00000530| 20 6a 75 73 74 20 69 6e | 66 6f 72 6d 20 74 68 65 | just in|form the|
|00000540| 20 52 65 73 6f 75 72 63 | 65 20 4d 61 6e 61 67 65 | Resourc|e Manage|
|00000550| 72 2c 0a 74 68 65 20 73 | 74 75 66 66 20 74 68 61 |r,.the s|tuff tha|
|00000560| 74 20 68 61 73 20 63 68 | 61 6e 67 65 64 2c 20 74 |t has ch|anged, t|
|00000570| 68 65 20 52 65 73 6f 75 | 72 63 65 20 4d 61 6e 61 |he Resou|rce Mana|
|00000580| 67 65 72 20 77 69 6c 6c | 20 64 6f 20 74 68 65 20 |ger will| do the |
|00000590| 72 65 73 74 20 66 6f 72 | 20 79 6f 75 2e 0a 0a 49 |rest for| you...I|
|000005a0| 6e 20 66 61 63 74 2c 20 | 79 6f 75 20 64 6f 6e 27 |n fact, |you don'|
|000005b0| 74 20 68 61 76 65 20 74 | 6f 20 75 73 65 20 74 68 |t have t|o use th|
|000005c0| 65 20 2e 58 64 65 66 61 | 75 6c 74 73 20 66 69 6c |e .Xdefa|ults fil|
|000005d0| 65 2e 20 59 6f 75 20 63 | 61 6e 20 73 70 65 63 69 |e. You c|an speci|
|000005e0| 66 79 20 61 6e 6f 74 68 | 65 72 0a 66 69 6c 65 20 |fy anoth|er.file |
|000005f0| 74 6f 20 6b 65 65 70 20 | 74 68 65 20 55 73 65 72 |to keep |the User|
|00000600| 20 49 6e 74 65 72 66 61 | 63 65 20 72 65 73 6f 75 | Interfa|ce resou|
|00000610| 72 63 65 73 20 73 65 70 | 61 72 61 74 65 20 66 72 |rces sep|arate fr|
|00000620| 6f 6d 20 74 68 65 20 61 | 70 70 6c 69 63 61 74 69 |om the a|pplicati|
|00000630| 6f 6e 0a 73 70 65 63 69 | 66 69 63 20 72 65 73 6f |on.speci|fic reso|
|00000640| 75 72 63 65 2f 70 72 6f | 70 65 72 74 69 65 73 2e |urce/pro|perties.|
|00000650| 20 41 20 63 6f 6e 76 65 | 6e 74 69 6f 6e 20 49 60 | A conve|ntion I`|
|00000660| 76 65 20 75 73 65 64 20 | 69 6e 20 74 68 65 20 70 |ve used |in the p|
|00000670| 61 73 74 20 69 73 20 74 | 6f 20 73 74 6f 72 65 0a |ast is t|o store.|
|00000680| 74 68 69 73 20 6b 69 6e | 64 20 6f 66 20 69 6e 66 |this kin|d of inf|
|00000690| 6f 72 6d 61 74 69 6f 6e | 20 69 6e 20 7e 2f 2e 3c |ormation| in ~/.<|
|000006a0| 61 70 70 3e 2e 72 63 20 | 66 69 6c 65 20 77 68 65 |app>.rc |file whe|
|000006b0| 72 65 20 61 70 70 20 69 | 73 20 74 68 65 20 6e 61 |re app i|s the na|
|000006c0| 6d 65 20 6f 66 20 79 6f | 75 0a 61 70 70 6c 69 63 |me of yo|u.applic|
|000006d0| 61 74 69 6f 6e 2e 0a 0a | 49 66 20 49 60 76 65 20 |ation...|If I`ve |
|000006e0| 63 6f 72 72 65 63 74 6c | 79 20 70 65 72 63 65 69 |correctl|y percei|
|000006f0| 76 65 64 20 74 68 69 73 | 20 74 6f 20 62 65 20 79 |ved this| to be y|
|00000700| 6f 75 72 20 70 72 6f 62 | 6c 65 6d 2c 20 61 6e 64 |our prob|lem, and|
|00000710| 20 74 68 65 20 73 6f 6c | 75 74 69 6f 6e 20 61 70 | the sol|ution ap|
|00000720| 70 65 61 6c 73 0a 74 6f | 20 79 6f 75 2c 20 65 2d |peals.to| you, e-|
|00000730| 6d 61 69 6c 20 6d 65 20 | 61 6e 64 20 49 20 77 69 |mail me |and I wi|
|00000740| 6c 6c 20 73 65 6e 64 20 | 79 6f 75 20 73 6f 6d 65 |ll send |you some|
|00000750| 20 63 6f 64 65 20 73 6e | 69 70 70 65 74 73 20 69 | code sn|ippets i|
|00000760| 66 20 79 6f 75 20 77 69 | 73 68 2e 0a 0a 52 65 67 |f you wi|sh...Reg|
|00000770| 61 72 64 73 20 66 72 6f | 6d 20 4e 6f 74 74 69 6e |ards fro|m Nottin|
|00000780| 67 68 61 6d 2c 20 50 6f | 6d 6d 79 6c 61 6e 64 0a |gham, Po|mmyland.|
|00000790| 0a 0a 4a 61 73 6f 6e 20 | 43 68 61 6d 62 65 72 73 |..Jason |Chambers|
|000007a0| 0a 0a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |..------|--------|
|000007b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000007c0| 2d 2d 2d 39 30 30 35 31 | 34 39 34 35 39 39 33 33 |---90051|49459933|
|000007d0| 33 39 36 38 36 31 36 33 | 36 38 34 35 39 32 37 0a |39686163|6845927.|
|000007e0| 43 6f 6e 74 65 6e 74 2d | 54 72 61 6e 73 66 65 72 |Content-|Transfer|
|000007f0| 2d 45 6e 63 6f 64 69 6e | 67 3a 20 37 62 69 74 0a |-Encodin|g: 7bit.|
|00000800| 43 6f 6e 74 65 6e 74 2d | 54 79 70 65 3a 20 74 65 |Content-|Type: te|
|00000810| 78 74 2f 70 6c 61 69 6e | 0a 0a 46 72 6f 6d 3a 20 |xt/plain|..From: |
|00000820| 49 61 69 6e 4a 61 6d 65 | 73 6f 6e 20 3c 49 61 69 |IainJame|son <Iai|
|00000830| 6e 2e 4a 61 6d 65 73 6f | 6e 40 64 73 74 6f 2e 64 |n.Jameso|n@dsto.d|
|00000840| 65 66 65 6e 63 65 2e 67 | 6f 76 2e 61 75 3e 0a 4e |efence.g|ov.au>.N|
|00000850| 65 77 73 67 72 6f 75 70 | 73 3a 20 63 6f 6d 70 2e |ewsgroup|s: comp.|
|00000860| 6c 61 6e 67 2e 63 2b 2b | 0a 53 75 62 6a 65 63 74 |lang.c++|.Subject|
|00000870| 3a 20 4f 76 65 72 77 72 | 69 74 69 6e 67 20 74 65 |: Overwr|iting te|
|00000880| 78 74 0a 44 61 74 65 3a | 20 54 68 75 2c 20 32 39 |xt.Date:| Thu, 29|
|00000890| 20 46 65 62 20 31 39 39 | 36 20 31 36 3a 34 39 3a | Feb 199|6 16:49:|
|000008a0| 32 34 20 2b 31 30 33 30 | 0a 4f 72 67 61 6e 69 7a |24 +1030|.Organiz|
|000008b0| 61 74 69 6f 6e 3a 20 44 | 53 54 4f 2c 41 75 73 74 |ation: D|STO,Aust|
|000008c0| 72 61 6c 69 61 0a 4d 69 | 6d 65 2d 56 65 72 73 69 |ralia.Mi|me-Versi|
|000008d0| 6f 6e 3a 20 31 2e 30 0a | 43 6f 6e 74 65 6e 74 2d |on: 1.0.|Content-|
|000008e0| 54 79 70 65 3a 20 74 65 | 78 74 2f 70 6c 61 69 6e |Type: te|xt/plain|
|000008f0| 0a 43 6f 6e 74 65 6e 74 | 2d 54 72 61 6e 73 66 65 |.Content|-Transfe|
|00000900| 72 2d 45 6e 63 6f 64 69 | 6e 67 3a 20 37 62 69 74 |r-Encodi|ng: 7bit|
|00000910| 0a 4d 65 73 73 61 67 65 | 2d 49 44 3a 20 3c 33 31 |.Message|-ID: <31|
|00000920| 33 35 34 35 36 43 2e 35 | 43 34 42 40 64 73 74 6f |35456C.5|C4B@dsto|
|00000930| 2e 64 65 66 65 6e 63 65 | 2e 67 6f 76 2e 61 75 3e |.defence|.gov.au>|
|00000940| 0a 0a 48 69 0a 0a 49 20 | 68 61 76 65 20 61 20 20 |..Hi..I |have a |
|00000950| 73 6d 61 6c 6c 20 70 72 | 6f 62 6c 65 6d 2e 0a 0a |small pr|oblem...|
|00000960| 49 20 68 61 76 65 20 77 | 72 69 74 74 65 6e 20 61 |I have w|ritten a|
|00000970| 20 47 55 49 20 69 6e 20 | 4d 6f 74 69 66 20 26 20 | GUI in |Motif & |
|00000980| 43 2f 43 2b 2b 2e 20 0a | 4f 6e 65 20 63 6f 6d 70 |C/C++. .|One comp|
|00000990| 6f 6e 65 6e 74 20 6c 65 | 74 73 20 74 68 65 20 75 |onent le|ts the u|
|000009a0| 73 65 72 20 61 6c 74 65 | 72 20 73 6f 6d 65 20 70 |ser alte|r some p|
|000009b0| 61 72 61 6d 65 74 65 72 | 73 20 2d 20 73 74 6f 72 |arameter|s - stor|
|000009c0| 65 64 20 69 6e 0a 61 20 | 70 61 72 61 6d 65 74 65 |ed in.a |paramete|
|000009d0| 72 20 66 69 6c 65 2c 20 | 74 68 65 20 76 61 6c 75 |r file, |the valu|
|000009e0| 65 73 20 6f 66 20 77 68 | 69 63 68 20 49 20 72 65 |es of wh|ich I re|
|000009f0| 61 64 20 69 6e 74 6f 20 | 74 68 65 20 61 70 70 72 |ad into |the appr|
|00000a00| 6f 70 72 69 61 74 65 20 | 0a 77 69 64 67 65 74 20 |opriate |.widget |
|00000a10| 2d 20 62 79 20 6f 70 65 | 6e 69 6e 67 20 61 20 6e |- by ope|ning a n|
|00000a20| 75 6d 62 65 72 20 6f 66 | 20 77 69 6e 64 6f 77 73 |umber of| windows|
|00000a30| 20 61 6e 64 20 63 68 61 | 6e 67 69 6e 67 20 74 68 | and cha|nging th|
|00000a40| 69 6e 67 73 20 2d 20 74 | 65 78 74 20 0a 61 6e 64 |ings - t|ext .and|
|00000a50| 20 6e 75 6d 62 65 72 73 | 2e 0a 0a 4d 79 20 70 72 | numbers|...My pr|
|00000a60| 6f 62 6c 65 6d 20 69 73 | 20 69 6e 20 73 61 76 69 |oblem is| in savi|
|00000a70| 6e 67 20 74 68 65 20 63 | 68 61 6e 67 65 73 2e 0a |ng the c|hanges..|
|00000a80| 0a 57 68 65 6e 20 74 68 | 65 20 75 73 65 72 20 75 |.When th|e user u|
|00000a90| 73 65 73 20 74 68 65 20 | 22 73 61 76 65 20 61 73 |ses the |"save as|
|00000aa0| 20 2e 2e 2e 22 20 6f 70 | 74 69 6f 6e 2c 20 49 20 | ..." op|tion, I |
|00000ab0| 63 6f 70 79 20 74 68 65 | 20 6f 6c 64 20 70 61 72 |copy the| old par|
|00000ac0| 61 6d 65 74 65 72 0a 66 | 69 6c 65 20 69 6e 74 6f |ameter.f|ile into|
|00000ad0| 20 61 20 6e 65 77 20 66 | 69 6c 65 2c 20 74 68 65 | a new f|ile, the|
|00000ae0| 20 6e 65 77 20 66 69 6c | 65 20 6e 61 6d 65 20 62 | new fil|e name b|
|00000af0| 65 69 6e 67 20 73 70 65 | 63 69 66 69 65 64 20 62 |eing spe|cified b|
|00000b00| 79 20 74 68 65 20 75 73 | 65 72 2e 0a 53 69 6d 70 |y the us|er..Simp|
|00000b10| 6c 65 20 65 6e 6f 75 67 | 68 20 2d 20 6f 70 65 6e |le enoug|h - open|
|00000b20| 20 74 68 65 20 6f 72 69 | 67 69 6e 61 6c 20 66 69 | the ori|ginal fi|
|00000b30| 6c 65 20 66 6f 72 20 72 | 65 61 64 69 6e 67 20 61 |le for r|eading a|
|00000b40| 6e 64 20 61 20 74 65 6d | 70 0a 66 69 6c 65 20 66 |nd a tem|p.file f|
|00000b50| 6f 72 20 77 72 69 74 69 | 6e 67 2c 20 6d 61 6b 65 |or writi|ng, make|
|00000b60| 20 73 75 72 65 20 74 68 | 65 72 65 20 69 73 20 65 | sure th|ere is e|
|00000b70| 6e 6f 75 67 68 20 6d 65 | 6d 6f 72 79 20 74 68 65 |nough me|mory the|
|00000b80| 6e 20 64 6f 20 61 20 66 | 72 65 61 64 28 29 20 0a |n do a f|read() .|
|00000b90| 66 6f 6c 6c 6f 77 65 64 | 20 62 79 20 61 6e 20 66 |followed| by an f|
|00000ba0| 77 72 69 74 65 28 29 2e | 0a 0a 4e 6f 77 2c 20 68 |write().|..Now, h|
|00000bb0| 6f 77 20 64 6f 20 49 20 | 61 6c 74 65 72 20 74 68 |ow do I |alter th|
|00000bc0| 65 20 76 61 6c 75 65 73 | 20 74 68 61 74 20 68 61 |e values| that ha|
|00000bd0| 76 65 20 63 68 61 6e 67 | 65 64 3f 0a 49 27 76 65 |ve chang|ed?.I've|
|00000be0| 20 74 72 69 65 64 20 61 | 20 66 65 77 20 74 68 69 | tried a| few thi|
|00000bf0| 6e 67 73 2c 20 62 75 74 | 20 6e 6f 74 68 69 6e 67 |ngs, but| nothing|
|00000c00| 20 73 65 65 6d 73 20 74 | 6f 20 77 6f 72 6b 2e 0a | seems t|o work..|
|00000c10| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 73 65 61 |For exam|ple, sea|
|00000c20| 72 63 68 69 6e 67 20 74 | 68 72 6f 75 67 68 20 74 |rching t|hrough t|
|00000c30| 68 65 20 6e 65 77 20 66 | 69 6c 65 20 28 20 72 65 |he new f|ile ( re|
|00000c40| 6d 65 6d 62 65 72 20 74 | 68 61 74 20 61 74 20 74 |member t|hat at t|
|00000c50| 68 69 73 0a 70 6f 69 6e | 74 20 69 74 20 69 73 20 |his.poin|t it is |
|00000c60| 73 69 6d 70 6c 79 20 61 | 20 63 6f 70 79 20 6f 66 |simply a| copy of|
|00000c70| 20 74 68 65 20 6f 72 69 | 67 69 6e 61 6c 20 29 20 | the ori|ginal ) |
|00000c80| 75 6e 74 69 6c 20 49 20 | 66 69 6e 64 20 61 0a 70 |until I |find a.p|
|00000c90| 61 72 61 6d 65 74 65 72 | 20 77 68 69 63 68 20 64 |arameter| which d|
|00000ca0| 69 66 66 65 72 73 20 66 | 72 6f 6d 20 61 20 76 61 |iffers f|rom a va|
|00000cb0| 6c 75 65 20 74 79 70 65 | 64 20 69 6e 20 62 79 20 |lue type|d in by |
|00000cc0| 74 68 65 20 75 73 65 72 | 2c 20 0a 61 6e 64 20 74 |the user|, .and t|
|00000cd0| 68 65 6e 20 74 72 79 69 | 6e 67 20 74 6f 20 6f 76 |hen tryi|ng to ov|
|00000ce0| 65 72 77 72 69 74 65 20 | 74 68 65 20 6c 69 6e 65 |erwrite |the line|
|00000cf0| 20 77 69 74 68 20 74 68 | 65 20 61 6c 74 65 72 65 | with th|e altere|
|00000d00| 64 20 76 61 6c 75 65 2e | 0a 0a 49 20 77 6f 75 6c |d value.|..I woul|
|00000d10| 64 20 61 70 70 72 65 63 | 69 61 74 65 20 61 6e 79 |d apprec|iate any|
|00000d20| 20 73 75 67 67 65 73 74 | 69 6f 6e 73 2e 0a 0a 54 | suggest|ions...T|
|00000d30| 68 61 6e 6b 73 20 69 6e | 20 61 64 76 61 6e 63 65 |hanks in| advance|
|00000d40| 2e 0a 0a 49 61 69 6e 2e | 0a 0a 2d 2d 2d 2d 2d 2d |...Iain.|..------|
|00000d50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000d60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 39 30 30 35 31 |--------|---90051|
|00000d70| 34 39 34 35 39 39 33 33 | 33 39 36 38 36 31 36 33 |49459933|39686163|
|00000d80| 36 38 34 35 39 32 37 2d | 2d 0a |6845927-|-. |
+--------+-------------------------+-------------------------+--------+--------+